﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using System.ComponentModel.Composition;

namespace Eniux.Web.MVVM
{
    [MetadataAttribute]
    [AttributeUsage(AttributeTargets.Class, AllowMultiple = false)]
    public class ViewModelExportAttribute : ExportAttribute, IViewModelMetadata
    {
        /// <summary>
        /// 此类型将用于匹配到 ViewModel 的视图
        /// </summary>
        public Type ViewModelContract { get; set; }


        public ViewModelExportAttribute(Type viewModelContract)
            : base(typeof(IViewModel))
        {
            this.ViewModelContract = viewModelContract;
        }
    }
}
